import Vue from 'vue'
import Vuex from 'vuex'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    isLogin:false,
    user:null
  },
  getters: {
  },
  mutations: {
    login(state){
      state.isLogin = true;
    },
    logout(state) {
      state.isLogin = false;
    }
  },
  actions: {
  },
  modules: {
  }
})
